HTML start here
href= "https://www.mozilla.org/"
title= "The Mozilla homepage"鼠标悬停显示的tab
target="_blank"在新标签页中打开如果不需要就omit this attribute
void elements
<img src= "https:sjfksj.png" alt= "Firefox icon"/>
alt = alternative text在搜索引擎图片抓取的时候能给到更有效的推荐,并且在盲人读屏的时候会读出。
<input type= "text" disabled= "disabled" />
|| <input type= "text" disabled />
<input type = "text" disabled />
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
<body>
<p>This is my page</p>
</body>
</html>
meta元 HTML分析器会把元素中的内容部分中的空白替换成一个空格。
Entity references
Literal character | Character reference equivalent |
---|---|
< | < |
> | > |
" | " |
' | ' |
& | & |